<?php	
	header('Content-type: application/json');
	require_once( '../wp-load.php' );	    
	global $wpdb;
	$trackings = $wpdb->get_results("SELECT * FROM wp_phone_call_tracking");
	if ($trackings != null) 
		echo json_encode($trackings);
	else
		echo json_encode(array());		   								
?>